#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
double my_pow(int n, int k)
{
	if (0 == k)
		return 1.0;
	else if (k > 0)
		return n * my_pow(n, k - 1);
	else
		return 1.0 / (my_pow(n, -k));
}
int main()
{
	int n = 0;
	int k = 0;
	scanf("%d %d", &n, &k);
	double ret = my_pow(n, k);
	printf("%lf\n", ret);
	return 0;
}
